﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Sitecore.Data;

namespace SitecoreTranslation.Integration
{
	public class BaseAction
	{
		#region Contants
	

		public const string RootName = "Root";
		public const string ItemName = "Item";
		public const string FieldName = "Field";

		public const string ItemId = "ID";
		public const string FileId = "ID";

		#endregion

		protected String _fileName;
		protected String _database;
		protected String _itemPath;

		private BaseAction()
		{
		}

		public BaseAction(String ExportFileName, String DataBaseName, String ItemPath)
		{
			_fileName = ExportFileName;
			_database = DataBaseName;
			_itemPath = ItemPath;
		}


		private Database _Database = null;
		protected Database Database
		{
			get
			{
				if(_Database == null)
				 _Database = Sitecore.Configuration.Factory.GetDatabase(_database);

				return _Database;
			}
		}

	}
}
